package com.ruoyi.merchant.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商家优惠券模板对象 merchant_coupon_template
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MerchantCouponTemplate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 优惠券模板ID */
    private String couponTemplateId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private String merchantId;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String name;

    /** 优惠券描述 */
    @Excel(name = "优惠券描述")
    private String description;

    /** 类型：1-满减券，2-折扣券 */
    @Excel(name = "类型")
    private Integer type;

    /** 优惠值 */
    @Excel(name = "优惠值")
    private BigDecimal discountValue;

    /** 最大优惠金额 */
    @Excel(name = "最大优惠金额")
    private BigDecimal maxDiscountAmount;

    /** 有效天数 */
    @Excel(name = "有效天数")
    private Integer validDays;

    /** 有效期截止 */
    @Excel(name = "有效期截止")
    private Date validTo;

    /** 库存 */
    @Excel(name = "库存")
    private Integer stock;

    /** 是否激活 */
    @Excel(name = "是否激活")
    private Boolean isActive;
}